package com.bwie.system.task;

import com.bwie.common.domain.Type;
import com.bwie.common.redis.RedisConfig;
import com.bwie.system.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.List;

/**
 * @className: TypeTask
 * @Description: TODO
 * @version: v1.８.0
 * @author:
 * @date:
 */
@Component
public class TypeTask {
    @Autowired
    private TypeService typeService;

    @PostConstruct
    public void typeList(){
        //调用接口，在接口中存redis
        List<Type> list = typeService.typeList();
    }

}
